{extend name="public/layout" /}
{block name="head_css"}
    <link rel="stylesheet" href="/static/index/css/header.css?v={$version}">
    <style>
        body {
            background-color: #fff;
        }
        .content-box {
            box-sizing: border-box;
            padding-top: 10px;
            padding-bottom: 3rem;
            font-size: .9rem;
        }

        .content-box .title-line {
            margin-bottom: 10px;
        }

        .content-box .title-line .title {
            font-size: 1rem;
            color: #333;
            line-height: 1.5rem;
            margin-bottom: 5px;
            padding-bottom: 5px;
            border-bottom: #ececec solid 1px;
        }

        .content-box .title-line .other {
            font-size: 0;
        }

        .content-box .title-line .other .date,.content-box .title-line .other .icon,.content-box .title-line .other .read {
            display: inline-block;
            vertical-align: middle;
        }

        .content-box .title-line .other .date {
            font-size: .8rem;
            color: #ccc;
        }

        .content-box .title-line .other .icon {
            width: 5%;
            padding-top: 5%;
            background-position: center;
            background-size: contain;
            background-repeat: no-repeat;
            background-image: url('/static/index/image/icon_list_read_459702.png');
            margin-left: 3%;
            margin-right: 1%;
        }

        .content-box .title-line .other .read {
            font-size: .7rem;
            color: #ccc;
        }

        .content-box .html-wrapper {
            width: 100%;
            overflow: hidden;
            font-size: .9rem;
            color: #777;
        }

        .content-box .html-wrapper p {
            margin-bottom: 0;
        }

        .content-box .html-wrapper div,.content-box .html-wrapper img,.content-box .html-wrapper table,.content-box .html-wrapper embed,.content-box .html-wrapper object,.content-box .html-wrapper video,.content-box .html-wrapper audio {
            width: 100%;
            max-width: 100%;
            height: auto;
        }

        .submit-btn,.submit-btn:link,.submit-btn:active,.submit-btn:visited {
            display: block;
            width: 100%;
            box-sizing: border-box;
            padding: .3rem 0;
            background-color: #ff7200;
            font-size: 1.1rem;
            color: #fff;
            text-decoration: none;
            text-align: center;
            position: fixed;
            bottom: 0;
            left: 0;
        }
    </style>
{/block}

{block name="main"}
    <!-- 头部 -->
    <div class="container sam-header">
        <div class="back">
            <a href="{:url('index')}">
                <div class="arrow"></div>
            </a>
        </div>
        <div class="name">{$vo.engineering_type}</div>
    </div>
    <!-- 头部 END -->

    <!-- 详情内容 -->
    <div class="container content-box">
        <div class="title-line">
            <div class="title">{$vo.title}</div>
            <div class="other">
                <div class="date">{$vo.add_time}</div>
                <div class="icon"></div>
                <div class="read">{$vo.pv}次</div>
            </div>
        </div>
        <div class="html-wrapper">
            <p>联系人：{$vo.contacts}</p>
            <p>{$vo.detail}</p>
            {foreach name='$vo.imgs' item="item"}
                <img class="img-responsive" src="{$item.path}" />
            {/foreach}
        </div>
    </div>
    <!-- 详情内容 END -->

    <a href="tel:{$vo.mobile}" class="submit-btn">拨打电话</a>
{/block}
{block name="footer"}{/block}
{block name="script"}
    <script>
        window.onload = function(){
            var url = '{:url("add_pv")}';
            var d = new Object();
            d.id = {$vo.id};
            d.seed = '{$seed}';
            $.post(url,d,function(){

            });
        }
    </script>
{/block}